﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common
{
    /// <summary>
    /// App Configuration Class
    /// </summary>
    public static class AppConfiguration
    {
        /// <summary>
        /// Gets the DB connection string.
        /// </summary>
        /// <value>
        /// The DB connection string.
        /// </value>
        public static string DBConnectionString { get { return ConfigurationManager.ConnectionStrings[Constants.AppSettings.DBConnectionString].ConnectionString; } }
        /// <summary>
        /// Gets the AnonymousUserName string.
        /// </summary>
        /// <value>
        /// The AnonymousUserName string.
        /// </value>
        public static string AnonymousUserName { get { return ConfigurationManager.AppSettings[Constants.AppSettings.AnonymousUserName]; } }

        /// <summary>
        /// Gets the AnonymousUserPassword string.
        /// </summary>
        /// <value>
        /// The AnonymousUserPassword string.
        /// </value>
        public static string AnonymousUserPassword { get { return ConfigurationManager.AppSettings[Constants.AppSettings.AnonymousUserPassword]; } }
        /// <summary>
        /// Gets the VehicleImagePath string.
        /// </summary>
        /// <value>
        /// The VehicleImagePath string.
        /// </value>
        public static string VehicleImagePath { get { return ConfigurationManager.AppSettings[Constants.AppSettings.VehicleImagePath]; } }
        /// <summary>
        /// Gets the ArticlePath string.
        /// </summary>
        /// <value>
        /// The ArticlePath string.
        /// </value>
        public static string ArticlePath { get { return ConfigurationManager.AppSettings[Constants.AppSettings.ArticlePath]; } }
        /// <summary>
        /// Gets the UserProfileImagePath string.
        /// </summary>
        /// <value>
        /// The UserProfileImagePath string.
        /// </value>
        public static string UserProfileImagePath { get { return ConfigurationManager.AppSettings[Constants.AppSettings.UserProfileImagePath]; } }
        

        
    }
}
